package com.dxd.entity;

import java.io.Serializable;

/**
 * 类型管理
 * 
 * @author Administrator
 *
 */
public class MessageType implements Serializable {

	private static final long serialVersionUID = -2689508629357834185L;

	private Integer id;// 类型id

	private String name;// 类型名称

	private Integer type;// 类型 1：失误招领类型（失物招领，寻物启示）2：物品类型（证件，书本，电器,其他）

	private MessageType parent;// 父级对象，只有type=2的时候才存在默认为null,数据库字段parent_id

	private String createTime;// 创建时间

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public MessageType getParent() {
		return parent;
	}

	public void setParent(MessageType parent) {
		this.parent = parent;
	}

}
